﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using IndoReputation.Models.BusinessObject;
using System.Web.Mvc;
using System.ComponentModel.DataAnnotations;
using IndoReputation.Commons;

namespace IndoReputation.Views.ViewModels
{
    public class CityViewModel : CommonEntity
    {
        public int ID { get; set; }
        [Required(ErrorMessage = "Please choose the Country")]
        public int CountryID { get; set; }
        public IEnumerable<SelectListItem> Country { get; set; }        

        [Required(ErrorMessage = "Please type the Name")]
        [StringLength(256, ErrorMessage = "String may not be longer than 256 characters")]
        [PlaceHolder("Enter name here")]
        public string Name { get; set; }

        [DataType(DataType.MultilineText)]
        [StringLength(512, ErrorMessage = "String may not be longer than 512 characters")]
        [PlaceHolder("Enter description here")]
        public string Description { get; set; }

        public DateTime? CreateAt { get; set; }

        public int? CreateBy { get; set; }
    }
}